package org.dingdingCompany;

import beans.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * TODO：
 *
 * @Author DYH
 * @Version 1.0
 * @Time 2021/03/31 21:48
 **/
public class ApplicationContext2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cs2 = new ClassPathXmlApplicationContext("applicationContext2.xml");
        User user1 = (User)cs2.getBean("user1");
        System.out.println(user1);
    }
}
